﻿using FarmSmartSleep.Common.Dtos;
using MediatR;
using System.ComponentModel.DataAnnotations;

namespace R.FarmSmartSleep.RBAC.API.Apliction.Command.Roless
{
    public class RolesCreateCommon:IRequest<Result>
    {
        /// <summary>
        /// 角色ID (主键，自增，不可为空)
        /// </summary> 
        public int RolesId { get; set; }

        /// <summary>
        /// 角色名称 (可空)
        /// </summary>
        public string? RoleName { get; set; }

        /// <summary>
        /// 描述 (可空)
        /// </summary>
        public string? Description { get; set; } 
        /// <summary>
        /// 创建人
        /// </summary>
        public int CreateId { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public int? UpdateId { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 删除人
        /// </summary>
        public int? DeleteId { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool Deletes { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? DeleteTime { get; set; }

    }
}
